<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
<link href="../style/authority/basic_layout.css" rel="stylesheet" type="text/css">
<link href="../style/authority/common_style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../scripts/authority/commonAll.js"></script>
<script type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.3.4.js"></script>
<script type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script language="javascript" type="text/javascript" src="../scripts/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" type="text/css" href="../style/authority/jquery.fancybox-1.3.4.css" media="screen"></link>
<script type="text/javascript" src="../scripts/artDialog/artDialog.js?skin=default"></script>
<script type="text/javascript" src="../scripts/Myscripts/alpha_add.js"></script>
<title>信息管理系统</title>
<style>
	.alt td{ background:black !important;}
</style>
</head>
<body>
<div id = "add_alpha_id">
	<form id="submitForm" name="submitForm" action="" method="post">
		<input type="hidden" name="allIDCheck" value="" id="allIDCheck"/>
		<input type="hidden" name="fangyuanEntity.fyXqName" value="" id="fyXqName"/>
		<div id="container">
			<div class="ui_content">
				<div class="ui_tb">
					<table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
						<tr>
							<th>订单号</th>
							<th>订单类型</th>
							<th>用户名</th>
							<th>订单状态</th>
							<th>订单日期</th>
							<th>录入员</th>
						</tr>
						<c:if test="${ord!=null}">
								<tr>
									<%-- <td><input type="checkbox" name="IDCheck" value="14458579642011" class="acb" /></td> --%>
									
										<td>${ord.order_id }</td>
										<td>${ord.order_type }</td>
										<td>${ord.user_name }</td>
										<td>${ord.order_state}</td>
										<td>${ord.order_date }</td>
										<td>${ord.order_operator }</td>
										
								</tr>
							</c:if>
							<tr>
							<th>商品名称</th>
							<th>商品数量</th>
							<th>金额</th>
						</tr>
						<c:if test="${ord!=null}">
								<tr>
									<%-- <td><input type="checkbox" name="IDCheck" value="14458579642011" class="acb" /></td> --%>
										<td>${ord.product_name }</td>
										<td>${ord.product_number }</td>
										<td>${ord.total_price }</td>
										
								</tr>
							</c:if>
							<tr>
							<th>收货人</th>
							<th>地址</th>
							<th>电话</th>
							<th>邮编</th>
							<th>任务分站</th>
							<th>备注</th>
						</tr>
						<c:if test="${ord!=null}">
								<tr>
									<%-- <td><input type="checkbox" name="IDCheck" value="14458579642011" class="acb" /></td> --%>
									
										<td>${ord.receiver }</td>
										<td>${ord.address }</td>
										<td>${ord.cellphone }</td>
										<td>${ord.zipcode}</td>
										<td>${ord.substation_id }</td>
										<td>${ord.tips }</td>
										
								</tr>
							</c:if>
							<tr>
						</tr>
					</table>
					<br>
					<c:if test="${ord.order_state=='可分配'}">
						<select name="substation_id" id="substation_id">
						<c:forEach items="${substations}" var="temp" >
						<option value="${temp}">${temp}</option>
						</c:forEach>
						</select><br><br>
						<input type=button class="ui_input_btn01"  value="调度" 
						onclick="javascript:document.submitForm.action='Orderconsultservlet?operation=schedule&order_id=${ord.order_id}';document.submitForm.submit()">
					</c:if>
				</div>
			</div>
		</div>
	</form>
	</div>
	<script type="text/javascript">
    var eitem = document.getElementById("add_alpha_id");
    window.onload = add_alpha(eitem);
    </script>
</body>
</html>
